package net.lzzy.practices.services;

import net.lzzy.practices.entities.User;

import java.util.List;
import java.util.UUID;

/**
 *  @author Jaymo on 2022/5/9.
 * Description:
 *
 */
public interface UserService {
    /**
     *
     * @param userName
     * @param password
     * @return
     */
    User check(String userName, String password);

    boolean isUserNameOccupied(String userName);

    User register(User user);

    List<User> get();

    List<User> get(int page, int size);

    Integer count();

    List<User> search(String kw);

    List<User> getApplying(boolean applying);

    User approveTeacher(UUID id);

    User declineTeacher(UUID id);

    User banUser(UUID id);

    String getSalt(String userName);

    User getById(UUID fromString);
}





